package com.example.demo.huawei;

import java.util.Scanner;

/*
拼接url
 */
public class OD47_2 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.nextLine();
        String[] split = s.split(",");
        if (split.length < 1) {
            System.out.println("/");
            return;
        }
        StringBuilder sb = new StringBuilder();
        String pre = split[0];
        String post = split[1];
        if (pre.endsWith("/") && post.startsWith("/")) {
            sb.append(pre);
            sb.append(post.replace("/", ""));
        } else if ((pre.endsWith("/") && !post.startsWith("/")) || (!pre.endsWith("/") && post.startsWith("/"))) {
            sb.append(pre).append(post);
        } else if (!pre.endsWith("/") && !post.startsWith("/")) {
            sb.append(pre).append("/").append(post);
        }
        System.out.println(sb);

    }
}
